<script setup>

import useTodoStore from "@/store/modules/todo.js";
const todoStore = useTodoStore();

const props = defineProps({
  detailInfo: {
    type: Object,
  }
})

const list = computed(()=> {
  const todoData = todoStore.getTodoData();
  if (!todoData) {
    return [];
  }
  return todoData.relItems;
})


</script>

<template>
  <el-table :data="list">
    <el-table-column label="名称" prop="name"></el-table-column>
    <el-table-column label="类别" prop="categoryName"></el-table-column>
    <el-table-column label="品牌" prop="brand"></el-table-column>
    <el-table-column label="型号" prop="model"></el-table-column>
  </el-table>
</template>

<style scoped lang="scss">

</style>